package com.deying.httplockserver.core;

import static io.netty.handler.codec.http.HttpVersion.HTTP_1_1;

import java.io.UnsupportedEncodingException;

import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.DefaultFullHttpResponse;
import io.netty.handler.codec.http.FullHttpResponse;
import io.netty.handler.codec.http.HttpHeaderNames;
import io.netty.handler.codec.http.HttpResponseStatus;

public class HttpLockRelease {
	String name;
	String tid;
	boolean across;
	ChannelHandlerContext ctx;
	
	
	public HttpLockRelease(ChannelHandlerContext ctx,String name,String tid,boolean across) {
		super();
		this.ctx = ctx;
		this.tid = tid;
		this.name = name;
		this.across = across;
	}
	
	public ChannelHandlerContext getCtx() {
		return ctx;
	}

	public void setCtx(ChannelHandlerContext ctx) {
		this.ctx = ctx;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public boolean isAcross() {
		return across;
	}

	public void setAcross(boolean across) {
		this.across = across;
	}

	
}
